<template>
  <div class="ocean-background">
    <div class="ocean-content">
      <h1 class="ocean-title">欢迎使用企业管理系统</h1>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'

// 页面加载
onMounted(() => {
  // 可以在这里添加任何需要的初始化逻辑
});</script>

<style scoped>
.ocean-background {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #1e3c72 0%, #2a5298 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 海浪效果 */
.ocean-background::before,
.ocean-background::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.1)" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,197.3C672,192,768,160,864,165.3C960,171,1056,213,1152,224C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: ocean-wave 15s linear infinite;
}

.ocean-background::after {
  bottom: -10px;
  opacity: 0.5;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.2)" d="M0,160L48,170.7C96,181,192,203,288,213.3C384,224,480,224,576,208C672,192,768,160,864,149.3C960,139,1056,149,1152,165.3C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  animation-delay: -7.5s;
  height: 80px;
}

/* 额外的上层波浪 */
.ocean-background::nth-child(3) {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 200%;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.15)" d="M0,288L48,266.7C96,245,192,203,288,197.3C384,192,480,224,576,218.7C672,213,768,171,864,176C960,181,1056,235,1152,245.3C1248,256,1344,224,1392,208L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: ocean-wave 10s linear infinite;
  opacity: 0.7;
}

@keyframes ocean-wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ocean-content {
  text-align: center;
  z-index: 10;
}

.ocean-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
  animation: fadeInUp 1s ease-out;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ocean-title {
    font-size: 2rem;
    padding: 0 20px;
  }
}
  </style>